package com.vanguard.p2p.business.example;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class BidExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public BidExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andBidIdIsNull() {
            addCriterion("bid_id is null");
            return (Criteria) this;
        }

        public Criteria andBidIdIsNotNull() {
            addCriterion("bid_id is not null");
            return (Criteria) this;
        }

        public Criteria andBidIdEqualTo(Long value) {
            addCriterion("bid_id =", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotEqualTo(Long value) {
            addCriterion("bid_id <>", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdGreaterThan(Long value) {
            addCriterion("bid_id >", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bid_id >=", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdLessThan(Long value) {
            addCriterion("bid_id <", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdLessThanOrEqualTo(Long value) {
            addCriterion("bid_id <=", value, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdIn(List<Long> values) {
            addCriterion("bid_id in", values, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotIn(List<Long> values) {
            addCriterion("bid_id not in", values, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdBetween(Long value1, Long value2) {
            addCriterion("bid_id between", value1, value2, "bidId");
            return (Criteria) this;
        }

        public Criteria andBidIdNotBetween(Long value1, Long value2) {
            addCriterion("bid_id not between", value1, value2, "bidId");
            return (Criteria) this;
        }

        public Criteria andActualRateIsNull() {
            addCriterion("actual_rate is null");
            return (Criteria) this;
        }

        public Criteria andActualRateIsNotNull() {
            addCriterion("actual_rate is not null");
            return (Criteria) this;
        }

        public Criteria andActualRateEqualTo(BigDecimal value) {
            addCriterion("actual_rate =", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateNotEqualTo(BigDecimal value) {
            addCriterion("actual_rate <>", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateGreaterThan(BigDecimal value) {
            addCriterion("actual_rate >", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_rate >=", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateLessThan(BigDecimal value) {
            addCriterion("actual_rate <", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateLessThanOrEqualTo(BigDecimal value) {
            addCriterion("actual_rate <=", value, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateIn(List<BigDecimal> values) {
            addCriterion("actual_rate in", values, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateNotIn(List<BigDecimal> values) {
            addCriterion("actual_rate not in", values, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_rate between", value1, value2, "actualRate");
            return (Criteria) this;
        }

        public Criteria andActualRateNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("actual_rate not between", value1, value2, "actualRate");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountIsNull() {
            addCriterion("available_amount is null");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountIsNotNull() {
            addCriterion("available_amount is not null");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountEqualTo(BigDecimal value) {
            addCriterion("available_amount =", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountNotEqualTo(BigDecimal value) {
            addCriterion("available_amount <>", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountGreaterThan(BigDecimal value) {
            addCriterion("available_amount >", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("available_amount >=", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountLessThan(BigDecimal value) {
            addCriterion("available_amount <", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("available_amount <=", value, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountIn(List<BigDecimal> values) {
            addCriterion("available_amount in", values, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountNotIn(List<BigDecimal> values) {
            addCriterion("available_amount not in", values, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("available_amount between", value1, value2, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andAvailableAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("available_amount not between", value1, value2, "availableAmount");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdIsNull() {
            addCriterion("bid_request_id is null");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdIsNotNull() {
            addCriterion("bid_request_id is not null");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdEqualTo(Long value) {
            addCriterion("bid_request_id =", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdNotEqualTo(Long value) {
            addCriterion("bid_request_id <>", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdGreaterThan(Long value) {
            addCriterion("bid_request_id >", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bid_request_id >=", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdLessThan(Long value) {
            addCriterion("bid_request_id <", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdLessThanOrEqualTo(Long value) {
            addCriterion("bid_request_id <=", value, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdIn(List<Long> values) {
            addCriterion("bid_request_id in", values, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdNotIn(List<Long> values) {
            addCriterion("bid_request_id not in", values, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdBetween(Long value1, Long value2) {
            addCriterion("bid_request_id between", value1, value2, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidRequestIdNotBetween(Long value1, Long value2) {
            addCriterion("bid_request_id not between", value1, value2, "bidRequestId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdIsNull() {
            addCriterion("bid_user_id is null");
            return (Criteria) this;
        }

        public Criteria andBidUserIdIsNotNull() {
            addCriterion("bid_user_id is not null");
            return (Criteria) this;
        }

        public Criteria andBidUserIdEqualTo(Long value) {
            addCriterion("bid_user_id =", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdNotEqualTo(Long value) {
            addCriterion("bid_user_id <>", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdGreaterThan(Long value) {
            addCriterion("bid_user_id >", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bid_user_id >=", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdLessThan(Long value) {
            addCriterion("bid_user_id <", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdLessThanOrEqualTo(Long value) {
            addCriterion("bid_user_id <=", value, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdIn(List<Long> values) {
            addCriterion("bid_user_id in", values, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdNotIn(List<Long> values) {
            addCriterion("bid_user_id not in", values, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdBetween(Long value1, Long value2) {
            addCriterion("bid_user_id between", value1, value2, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidUserIdNotBetween(Long value1, Long value2) {
            addCriterion("bid_user_id not between", value1, value2, "bidUserId");
            return (Criteria) this;
        }

        public Criteria andBidTimeIsNull() {
            addCriterion("bid_time is null");
            return (Criteria) this;
        }

        public Criteria andBidTimeIsNotNull() {
            addCriterion("bid_time is not null");
            return (Criteria) this;
        }

        public Criteria andBidTimeEqualTo(Date value) {
            addCriterion("bid_time =", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeNotEqualTo(Date value) {
            addCriterion("bid_time <>", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeGreaterThan(Date value) {
            addCriterion("bid_time >", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("bid_time >=", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeLessThan(Date value) {
            addCriterion("bid_time <", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeLessThanOrEqualTo(Date value) {
            addCriterion("bid_time <=", value, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeIn(List<Date> values) {
            addCriterion("bid_time in", values, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeNotIn(List<Date> values) {
            addCriterion("bid_time not in", values, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeBetween(Date value1, Date value2) {
            addCriterion("bid_time between", value1, value2, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidTimeNotBetween(Date value1, Date value2) {
            addCriterion("bid_time not between", value1, value2, "bidTime");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleIsNull() {
            addCriterion("bid_request_title is null");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleIsNotNull() {
            addCriterion("bid_request_title is not null");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleEqualTo(String value) {
            addCriterion("bid_request_title =", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleNotEqualTo(String value) {
            addCriterion("bid_request_title <>", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleGreaterThan(String value) {
            addCriterion("bid_request_title >", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleGreaterThanOrEqualTo(String value) {
            addCriterion("bid_request_title >=", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleLessThan(String value) {
            addCriterion("bid_request_title <", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleLessThanOrEqualTo(String value) {
            addCriterion("bid_request_title <=", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleLike(String value) {
            addCriterion("bid_request_title like", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleNotLike(String value) {
            addCriterion("bid_request_title not like", value, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleIn(List<String> values) {
            addCriterion("bid_request_title in", values, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleNotIn(List<String> values) {
            addCriterion("bid_request_title not in", values, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleBetween(String value1, String value2) {
            addCriterion("bid_request_title between", value1, value2, "bidRequestTitle");
            return (Criteria) this;
        }

        public Criteria andBidRequestTitleNotBetween(String value1, String value2) {
            addCriterion("bid_request_title not between", value1, value2, "bidRequestTitle");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}